<div class="headerbar">
	<h1><?php echo lang('payments'); ?></h1>

	<div class="pull-right">
		<?php echo pager(site_url('guest/payments/index'), 'mdl_payments'); ?>
	</div>

</div>

<?php $this->layout->load_view('layout/alerts'); ?>

<div id="filter_results">
    <table class="table table-striped">

        <thead>
            <tr>
                <th><?php echo lang('date'); ?></th>
                <th><?php echo lang('invoice'); ?></th>
                <th><?php echo lang('amount'); ?></th>
                <th><?php echo lang('payment_method'); ?></th>
                <th><?php echo lang('note'); ?></th>
            </tr>
        </thead>

        <tbody>
            <?php foreach ($payments as $payment) { ?>
            <tr>
                <td><?php echo date_from_mysql($payment->payment_date); ?></td>
                <td><?php echo $payment->invoice_number; ?></td>
                <td><?php echo format_currency($payment->payment_amount); ?></td>
                <td><?php echo $payment->payment_method_name; ?></td>
                <td><?php echo $payment->payment_note; ?></td>
            </tr>
            <?php } ?>
        </tbody>

    </table>
</div>